Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Color Data Types

typedef struct RGBColor {
    Float32                         red;
    Float32                         green;
    Float32                         blue;
} RGBColor;
typedef struct ARGBColor {
    Float32                         alpha;
    Float32                         red;
    Float32                         green;
    Float32                         blue;
} ARGBColor;

The values in the fields of a color data type must lie in the closed interval [0, 1]. 0 is the minimum value; 1 is the maximum value.

The 3D metafile currently supports only the RGB (red, green, blue) color model (as opposed to color models such as HSV, LAB, etc.).


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |